/**
 * 基础信息
 */
import { fetch } from '@/common/request'

// 产品列表
export const goods = (param, options) => fetch({ url: '/goods', param, options })

// 目的地
export const scene = (param, options) => fetch({ url: '/scene', param, options })

// 景点
export const sceneItem = (param, options) => fetch({ url: '/scene_item', param, options })

// 活动
export const activity = (param, options) => fetch({ url: '/activity', param, options })

// 目的地分类
export const sceneCate = (param, options) => fetch({ url: '/scene_cate', param, options })

// 产品列表
export const sku = (param, options) => fetch({ url: '/goods/sku', param, options })

// 评论
export const comment = (param, options) => fetch({ url: '/comment', param, options })

// 给评论点赞
export const commentPraise = (param, options) => fetch({ url: '/comment/praise', param, options })

// 产品分类列表
export const goodsCate = (param, options) => fetch({ url: '/goods_cate', param, options })

// 资讯分类
export const infotype = (param, options) => fetch({ url: '/info_type', param, options })

// 资讯列表
export const info = (param, options) => fetch({ url: '/info', param, options })

// 广告
export const ad = (param, options) => fetch({ url: '/ad', param, options })

// 获取攻略
export const guides = (param, options) => fetch({ url: '/guides', param, options })

// 获取攻略
export const route = (param, options) => fetch({ url: '/route', param, options })

// 获取商品推荐合集
// export const goodsCounter = (param, options) => fetch({ url: '/goods/counter', param, options })

// 获取全景
export const pano = (param, options) => fetch({ url: '/pano', param, options })

// 获取视频
export const video = (param, options) => fetch({ url: '/video', param, options })

// 获取地图
export const map = (param, options) => fetch({ url: '/map', param, options })

// 获取配置
export const config = (param, options) => fetch({ url: '/config', param, options })

// 获取单页面
export const page = (param, options) => fetch({ url: '/tool/getPage', param, options })

// 城市
export const city = (param, options) => fetch({ url: '/city', param, options })

// 乡镇
export const town = (param, options) => fetch({ url: '/town', param, options })

// 获取分享二维码
export const getShareQrcode = (param, options) => fetch({ url: '/tool/qrcode', param, options })

// 获取多级列表
export const area = (param, options) => fetch({ url: '/area', param, options })

// 识别花
export const arScanForflower = (param, options) => fetch({ url: '/ar/flower', param, options })

// 咨询投诉
export const complainService = (param, options) => fetch({ url: '/service/complain', param, options })

// 服务人员
export const workerService = (param, options) => fetch({ url: '/worker', param, options })

// 服务人员类别
export const workerType = (param, options) => fetch({ url: '/worker_type', param, options })

// 全局搜索
export const fullSearch = (param, options) => fetch({ url: '/tool/fullSearch', param, options })

export const getWeatherInfo = (param, options) => fetch({ url: '/city/getWeatherInfo', param, options })

// 获取分类列表
export const getCate = (param, options) => fetch({ url: '/Restaurant/getCate', param, options })

// 购物车提交订单
export const getInfoBySceneId = (param, options) => fetch({ url: '/restaurant/getInfoBySceneId', param, options })
// 购物车提交订单
export const getInfo = (param, options) => fetch({ url: '/restaurant/getInfo', param, options })

// 获取分类列表下的产品
export const getProductList = (param, options) => fetch({ url: '/Restaurant/getProductList', param, options })

// 上传目的地信息
export const upSceneInfo = (param, options) => fetch({ url: '/scene/up', param, options })

// 提交申请
export const sendApply = (param, options) => fetch({ url: '/apply/save', param, options })

export const getApplyConfig = (param, options) => fetch({ url: '/apply/config', param, options })

// 获取申请信息
export const apply = (param, options) => fetch({ url: '/apply', param, options })

// 获取校验今日审核信息
export const checkTodayApply = (param, options) => fetch({ url: '/apply/check', param, options })

// 获取申请信息
export const poster = (param, options) => fetch({ url: '/poster', param, options })

export const getPosterPic = (param, options) => fetch({ url: '/poster/pic', param, options })

// 自定义页面
export const diy = (param, options) => fetch({ url: '/diy', param, options })

export const noop = (param, options) => fetch({ url: '/info', param, options })

// 获取详情
export const getRouteCalendar = (param, options) => fetch({ url: '/route/calendar', param, options })

// 消息列表
export const information = (param, options) => fetch({ url: '/information', param, options })

export const bank = (param, options) => fetch({ url: '/bank', param, options })

export const withdraw = (param, options) => fetch({ url: '/withdraw', param, options })

// 获取提现费率
export const getWithdrawRate = (param, options) => fetch({ url: '/withdraw/getWithdrawRate', param, options })

export const flashUserInfo = (param, options) => fetch({ url: '/user/info', param, options })

export const getUserAmountLog = (param, options) => fetch({ url: '/distributor', param, options })

// 随机获取一个问题
export const getRandomQuestion = (param, options) => fetch({ url: '/question/getQuestion', param, options })

// 校验答案
export const checkQuestion = (param, options) => fetch({ url: '/question/checkQuestion', param, options })

// 获取积分商品
export const points = (param, options) => fetch({ url: '/points', param, options })

export const pointsOrder = (param, options) => fetch({ url: '/points/order', param, options })

export const getUserPointLog = (param, options) => fetch({ url: '/user/pointsRecord', param, options })

export const unifyOrder = (param, options) => {
  const from_mid = Storage.get('owner_id')
  if (from_mid) {
    param.from_mid = from_mid
  }
  return fetch({ url: '/order/unifyOrder', param, options })
}

export const orderScore = (param, options) => fetch({ url: '/order/score', param, options })

export const unifyPay = (param, options) => fetch({ url: '/order/unifyPay', param, options })

export const getWxRunData = (param, options) => fetch({ url: '/user/getWxRunData', param, options })

// 获取今天的捐步信息
export const getCurrentStepTask = (param, options) => fetch({ url: '/step/getCurrentTask', param, options })

// 捐步
export const donateStep = (param, options) => fetch({ url: '/step/donate', param, options })
